-- card: 3055 from stack: in.0 (US) -- bmap block id: 3273 -- flags: 0000 -- background id: 2661 -- name: -- part 1 (field) -- low flags: 01 -- high flags: 0007 -- rect: left=69 top=68 right=252 bottom=434 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: -- part 25 (button) -- low flags: 00 -- high flags: A003 -- rect: left=201 top=278 right=316 bottom=346 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: IsObject ----- HyperTalk script ----- on mouseUp ask "object :" with "cd btn 1" if it ≠ empty then answer IsObject(it) end mouseUp -- part contents for card part 1 ----- text ----- IsObject 1.0 © Frédéric RINALDI DESCRIPTION ------------ IsObject is a XFCN allowing to test the existence of an HyperCard object. SYNTAX ------- IsObject () PARAMETERS ------------ The object descriptor can be any valid HyperTalk descriptor (number, name or id). If a name is used, it must me enclosed in quotes : IsObject ("card button" && quote & "My button" & quote) Using "!" and "?" as parameter will return an online help (resp. copyright and syntax). USING ----- The XFCN returns "true" if the object exists, "false" if not. If an error occurs, it can return : "Error : Missing parameter" --------------------------------------------------------------------- This (these) external(s) is (are) FreeWare,allowing unlimited use in any non-commercial stack. You just need in this case to mention the author's name and copyright in your stack. Any commercial use must be licensed and aknowledged by the author. © F. Rinaldi - 1989,1990 AppleLink: RINALDI1 CalvaCom : FR10 Compuserve : 71170,2111